import Home from '../views/Home.vue'

const routes = [
    // isNav 是上面
    // isTab 是下面
    // 首页
    {
        path: '/',
        name: 'Home',
        component: Home,
        meta: {
            isTab: true,
            isNav: false,
            title: "首页"
        }
    },
    {
        path: '/about',
        name: 'About',
        component: () => import('../views/About.vue')
    },
    // 详情
    {
        path: '/darg',
        name: 'darg',
        component: () => import("../views/darg/darg.vue"),
        meta: {
            isTab: false,
            isNav: true,
            title: "砍价列表"
        }
    },
    {
        path: '/global',
        name: 'global',
        component: () => import("../views/global/global.vue"),
        meta: {
            isTab: false,
            isNav: true,
            title: "商品信息"
        }
    },
    {
        path: '/shopping',
        name: 'shopping',
        component: () => import("../views/shopping/shopping.vue"),
        meta: {
            isTab: false,
            isNav: true,
            title: "商品信息"
        }
    },
    // 精选专题
    {
        path: '/sift',
        name: 'sift',
        component: () => import("../views/sift/sift.vue"),
        meta: {
            isTab: false,
            isNav: true,
            title: "精选专题"
        }
    },
    // 分类
    {
        path: '/mod',
        name: 'mod',
        component: () => import("../views/mod/mod.vue"),
        meta: {
            isTab: false,
            isNav: true,
            title: "分类"
        }
    },
    {
        path: '/cart',
        name: 'cart',
        component: () => import("../views/cart/cart.vue"),
        meta: {
            isTab: false,
            isNav: true,
            title: "购物车"
        }
    },
    // 我的
    {
        path: '/my',
        name: 'my',
        component: () => import("../views/my/my.vue"),
        meta: {
            isTab: true,
            isNav: false,
            title: "我的页面"
        }
    },
    // 登录
    {
        
        path: '/loading',
        name: 'loading',
        component: () => import("../views/loading/loading.vue"),
        meta: {
            isTab: true,
            isNav: false,
            title: "登录页面"
        }
    }
]

export default routes